coreVersion: v1
kind: Item
includeTemplates:
  - default
metadata:
  name: user
  displayName: User
  pluralName: users
  displayPluralName: Users
  titleAttribute: username
  dataSource: main
  tableName: sec_users
  icon: UserOutlined
  description: Users
  core: true
  performDdl: false
  implementation: ru.scisolutions.scicmscore.engine.hook.impl.UserItemImpl
spec:
  attributes:
    username:
      type: string
      columnName: username
      displayName: Username
      description: Username
      required: true
      length: 50
      colWidth: 200
    password:
      type: password
      columnName: passwd
      displayName: Password
      description: Password
      confirm: true
      encode: true
      length: 50
      colHidden: true
    enabled:
      type: bool
      columnName: enabled
      displayName: Enabled
      description: Enabled
      defaultValue: true
  indexes:
    sec_users_username_uk:
      columns:
        - username
      unique: true
